package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dobbinsoft.fw.support.mapper.IMapper;
import com.dobbinsoft.fw.support.model.Page;
import com.iotechn.unimall.data.domain.InspectionDO;
import com.iotechn.unimall.data.dto.InspectionDTO;
import org.apache.ibatis.annotations.Param;

/**
 * Generate Code By Unimall
 */
public interface InspectionMapper extends IMapper<InspectionDO> {

    //设备记录
    Page<InspectionDTO> getRecordList(IPage<InspectionDTO> page,
                                      @Param("equipmentId") Long equipmentId,
                                      @Param("startDate") String startDate, @Param("endDate") String endDate);

    //异常处理列表
    Page<InspectionDTO> getExceptionList(IPage<InspectionDTO> page,
                                      @Param("searchKeyWord") String searchKeyWord,
                                      @Param("searchType") String searchType, @Param("room") String room);
}
